﻿using Student;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace Student.Tests
{
    [TestClass()]
    public class StudentTest
    {
        [TestMethod()]
        [ExpectedException(typeof(ArgumentOutOfRangeException))]
        public void StudentConstructorTest()
        {
            string name = "Pesho";
            int facultyNumber = 9000;
            Student target = new Student(name, facultyNumber);
        }


        [TestMethod()]
        [ExpectedException(typeof(ArgumentOutOfRangeException))]
        public void FacultyNumberTest()
        {
            string name = "pesho";
            int facultyNumber = 12000; // TODO: Initialize to an appropriate value
            Student target = new Student(name, facultyNumber); // TODO: Initialize to an appropriate value
            int expected = 8000; // TODO: Initialize to an appropriate value
            int actual;
            target.FacultyNumber = expected;
            actual = target.FacultyNumber;
            Assert.AreEqual(expected, actual);
        }
        
        
    }
}
